import './styles/index.scss'
import { createApp } from 'vue'

import 'vue3-emoji-picker/css'

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 语言配置
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// element-plus 主题切换
import 'element-plus/theme-chalk/dark/css-vars.css'
// 全局注册组件
import globalComponents from './components'
// store
import pinia from './stores'

import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(router)
app.use(pinia)

app.use(globalComponents)

app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')
